﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Persistencia
{
    public abstract class ObjetoPersistible
    {
        public static IPersistencia per;
        
        public void Create() {
            per.Create(this);
        }

        public void Delete() {
            per.Delete(this);
        }

        public void Update() {
            per.Update(this);
        }

        public List<ObjetoPersistible> Select(Persistencia.ObjetoPersistible obj) {
            return per.Select(obj);
        }
    }
}
